<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <script type="text/javascript">
	function check_input(form)
	{
            if(form.name.value=="") {
                alert("请输入登录名!");
		form.name.select();
		return(false);
            }
           
	  if(form.password.value=="") {
	     alert("请输入登录密码!");
		 form.password.select();
		 return(false);
	   }
           
	   return(true);
	}
    </script>
    <body>
        <?php
        // put your code here
        /**
         * @todo 新增输入确认密码
         */
        ?>
        <table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td height="20" bgcolor="#B0E0E6">
                    <div align="center">
                        添加管理员
                    </div>
                </td>
            </tr>
            <tr>
                <td bgcolor="#666666">
                    <table width="720" border="0" cellpadding="0" cellspacing="1">
                        <form name="form1" enctype="multipart/form-data" method="post" action="savenewadmin.php" onSubmit="return check_input(this)">
                            <tr>
                                <td width="129" height="25" bgcolor="#FFFFFF">
                                    <div align="center">
                                        登录名：
                                    </div>
                                </td>
                                <td width="618" bgcolor="#FFFFFF">
                                    <div align="left">
                                        <input type="text" name="name" size="25" maxlength="18" placeholder="字母和数字组成，不超过15位">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="center">
                                        密码：
                                    </div>
                                </td>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="left">
                                        <input type="password" name="password" size="25" maxlength="18" placeholder="字母和数字组成，8-16位">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="center">
                                        性别：
                                    </div>
                                </td>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="left">
                                    <select name="sex">
                                    <option value=0 selected="selected">男</option>
                                    <option value=1 >女</option>
                                    </select>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="center">
                                        年龄：
                                    </div>
                                </td>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="left">
                                        <input type="number" name="age" size="25" maxlength="3" max="100" min="1">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="center">
                                        联系方式：
                                    </div>
                                </td>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="left">
                                        <input type="tel" name="tel" size="25" maxlength="11" placeholder="8位座机号或11位手机号">
                                </div></td>
                            </tr>
                            <tr>
                              <td height="25" colspan="2" bgcolor="#FFFFFF">
                                  <div align="center">
                                      <input name="submit" type="submit" id="submit" value="添加">
                                      &nbsp;&nbsp;
                                      <input type="reset" value="重置">
                                  </div>
                              </td>
                            </tr>
                    </form>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>
